package geektime.spring.autoconfiguredemo.service;


import geektime.spring.autoconfiguredemo.handler.UserDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service("userServiceA")
public class UserServiceImp implements UserService {
    @Resource(name="userDaoA")
    private UserDao userDao;
    //@Resource 报错有可能是jdk版本的问题 build path解决一下
    public void save() {
        this.userDao.save();
        log.info("UserService...save :{}","测试成功");
    }
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
